import axios from '@/https/axios'
import { queryParams } from '@/hooks/queryParams'

// 管理员列表
export function getGoodsCommentList(page, query = {}) {
    let r = queryParams(query)
    return axios.get(`admin/goods_comment/${page}${r}`)
}

// 修改状态
export function updateGoodsCommentStatus(id, status) {
    return axios.post(`/admin/goods_comment/${id}/update_status`, {
        status
    })
}

// 回复评价
export function reviewGoodsCommentStatus(id, data) {
    return axios.post(`/admin/goods_comment/review/${id}`, { data })
}
